package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-08-04
 */
@TableName("wz_share")
public class WzShare extends Model<WzShare> {

    private static final long serialVersionUID = 1L;

    /**
     * share_id
     */
    @TableId(value = "share_id", type = IdType.AUTO)
    private Long shareId;
    /**
     * 1-广告分享
     */
    private Integer type;
    @TableField("target_id")
    private Long targetId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * openid
     */
    private String openid;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 性别:1-男性，2-女性
     */
    private Integer gender;
    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * unionid
     */
    private String unionid;
    @TableField("create_time")
    private Date createTime;


    public Long getShareId() {
        return shareId;
    }

    public void setShareId(Long shareId) {
        this.shareId = shareId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.shareId;
    }

    @Override
    public String toString() {
        return "WzShare{" +
        "shareId=" + shareId +
        ", type=" + type +
        ", targetId=" + targetId +
        ", userCode=" + userCode +
        ", openid=" + openid +
        ", nickName=" + nickName +
        ", gender=" + gender +
        ", avatarUrl=" + avatarUrl +
        ", unionid=" + unionid +
        ", createTime=" + createTime +
        "}";
    }
}
